//
//  PKHomeViewModel.swift
//  Panku
//
//  Created by mac on 2017/2/6.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit
import ReactiveCocoa
import ReactiveSwift
import Result

class PKHomeViewModel: NSObject {
    
    var tabTitles = ["直播","小视频","发现"]
    
    var livesModels = MutableProperty([PKLiveModel]())
    
    var cycleTitles = ["无翼鸟乐队","我想和你唱","追路乐队"]
    
    var cycleUrls = ["http://mp.weixin.qq.com/s/dG2AK2WhDBLHe9ubqXQeXQ",
                     "http://mp.weixin.qq.com/s/CktTDE3FI7HKiHIR9w7HoQ",
                     "http://mp.weixin.qq.com/s/H36HXDIPFE0ZXhFerab30Q"]
    
    func numberOfSections() -> Int{
        return 1
    }
    
    func images() -> [UIImage]{
        return [R.image.banner1()!,R.image.banner2()!,R.image.banner3()!]
    }
    
    func heightForRowAt(index:Int) -> CGFloat{
        return 300
    }
    
    func viewModelForIMController() -> PKIMViewModel{
        return PKIMViewModel()
    }
    
    func viewModelForSearchViewController() -> PKHomeSearchViewModel{
        return PKHomeSearchViewModel()
    }

    
    
}
